<style>
.setimg{
	margin:-2px 5px 0 0 
}
</style>
<div class="row-fluid">
	<a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
		<button class="btn btn-primary ifrm" data-url="/user/addNurse" data-width="720" data-height="420" data-title="添加护士" data-params="" style="float:right;padding:3px 6px">添加护士</button>
	    <div class="btn-toolbar">
		    <form>
		    	<label style="display: inline;">用户名称：</label><input class="input input-medium" type="text" name="cust_name" value="<?=I('get.cust_name')?>" />
		    	<label style="display: inline;margin-left:10px">手机号码：</label><input class="input input-medium" type="text" name="cust_mobile" value="<?=I('get.cust_mobile')?>" />
		    	<input type="hidden" value="<?=I('get.res')?>" name="res" />
		    	<button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
		    </form>
		</div>
		<hr>

		<table class="table">
		      <thead>
		        <tr>
		          <th style="text-align:center;width:100px">序号id</th>
		          <th style="text-align:center;width:170px">姓名</th>
		          <th style="text-align:center;width:180px">手机号</th>
		          <th style="text-align:center;width:180px">是否审核</th>
		          <th style="text-align:center;width:140px">操作时间</th>
		      	  <th style="text-align:center;width:130px">操作</th>
		        </tr>
		      </thead>
		      <tbody>
		      	<?php if($getData){foreach($getData AS $key=>$val){ ?>
		        <tr> 
		          <td style="text-align:center;vertical-align:middle;"><?=$val['id']?></td>
		          <td style="text-align:center;vertical-align:middle;">
                      <?=$val['uname']?>
                  </td>
		          <td style="text-align:center;vertical-align:middle;"><?=$val['mobile'] ?></td>
                    <td style="text-align:center;vertical-align:middle;">
						<?php if(!$val['checked']){?>
						<span class="label label-default">未审核</span>
						<?php }else{?>
						<span class="label label-info" style="background-color:#B387CA">已审核</span>
						<?php }?>
		          </td>
		          <td style="text-align:center;vertical-align:middle;">注册时间：<?=date('Y-m-d H:i',$val['add_at'])?></td>
		          <td style="text-align:center;vertical-align:middle;">
		              <?php if($val['checked']){?>
					  	  <a href="/index/decate?custid=<?=$val['id']?>" class="decate btn btn-danger" style="padding: 0px 4px;" role="button" title="冻结用户" data-toggle="modal"><i class="icon-eye-close"></i></a>&nbsp;&nbsp;
					  <?php }else{ ?>
					      <a href="/index/decate?custid=<?=$val['id']?>&types=1" class="decate btn btn-warning" style="padding: 0px 4px;" role="button" title="解封用户" data-toggle="modal"><i class="icon-eye-open"></i></a>&nbsp;&nbsp;
					  <?php }?>
				 </td>
		        </tr>
		        <?php }}else{?>
		        	<tr><td style="text-align:center" colspan=7>暂无数据</td></tr>
		        <?php }?>
		      </tbody>
		   </table>
		   <span style="float:right;margin-top:-44px"><?=$page?></span>
	</div>
</div>
<script>
$(function(){
	$('.setTag').click(function(){
		if(!window.confirm('确认'+$(this).attr('title')+'吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});
})
</script>